<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %> 
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="orderField" value="${param.orderField}" /> 
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"	action="order_changeList.action" method="post">
		<!--  -->
		<div class="searchBar nowrap">
			<p><label>单据编号</label>
			<input type="text" name="rcoNo" value="${rcoNo}" maxlength="19" size="23" />
			</p>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>


<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<c:if test="${!empty recordList }">
			<li><a class="icon-ok" 
					href="order_changeUI.action?rcoId={order_id}" 
					rel="order_changeUI" 
					target="dialog" 
					mask="true"
					warn="请选择一条补卡单据！" 
					width="500" height="250">
					<span>确认收款</span></a>
			</li>
			<li class="line">line</li>
		</c:if>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="120">
		<thead>
			<tr>
				<th align="center">序号</th>
				<th>单据编号</th>
				<th>学校名称</th>
				<th>补卡数量</th>
				<th>费用总额</th>
				<th>申请人</th>
				<th>申请时间</th>
				<th>流程状态</th>
				<th>处理人</th>
				<th>处理时间</th>
				<th>简要说明</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${recordList}" var="order" varStatus="status">
			<tr target="order_id" rel="${order.rcoId }" >
				<td>${(status.index+1) + (currentPage-1) * numPerPage}</td>
				<td>${order.rcoNo }</td>
				<td>${order.sclName }</td>
				<td>${order.rcoCountNumber }</td>
				<td>
					<c:choose>
						<c:when test="${order.rcoAmount==0 }">
							<span style="color:green;line-height: 21px;">免费</span>
						</c:when>
						<c:otherwise>
							${order.rcoAmount }
						</c:otherwise>
					</c:choose>
				</td>
				<td>${order.createOperName }</td>
				<td>
					<fmt:parseDate  value="${order.createTime}" var="createTime" pattern="yyyyMMddHHmmss"/>  
					<fmt:formatDate value="${createTime}" pattern="yyyy-MM-dd HH:mm:ss" /> 
				</td>
				<td>
					未付费
				</td>
				<td>${order.dealOperName }</td>
				<td>
					<fmt:parseDate  value="${order.dealTime}" var="dealTime" pattern="yyyyMMddHHmmss"/>  
					<fmt:formatDate value="${dealTime}" pattern="yyyy-MM-dd HH:mm:ss" /> 
				</td>
				<td>${order.remark }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<%@ include file="/WEB-INF/jsp/public/panelBar.jsp"%>	
</div>
